import Vue from 'vue'
import Antd, { Icon } from 'ant-design-vue'
import App from './App.vue'
import router from './router'
import store from './store'
import moment from 'moment'
import BasicContainer from '@/components/basicContainer'
import axiosInstance from '@/api/request.js';
import { message } from 'ant-design-vue';
import { Modal } from 'ant-design-vue';
import * as echarts from 'echarts';

import 'ant-design-vue/dist/antd.css'
import '@/assets/css/common.css'

// 将 axios 实例挂载到 Vue 原型上
Vue.prototype.$axios = axiosInstance;
Vue.prototype.$echarts = echarts;
Vue.prototype.$message = message;
Vue.prototype.$confirm = Modal.confirm;
Vue.use(Antd)
Vue.prototype.$moment = moment
const IconFont = Icon.createFromIconfontCN({
  scriptUrl: '//at.alicdn.com/t/font_3172049_f4wdmiyycqw.js',
})
Vue.component(IconFont.name, IconFont)
Vue.component('BasicContainer', BasicContainer)
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')